﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 植物管理器
/// </summary>
public enum PlantType
{
    FLOWER,//向日葵
    SHOTTER,//豌豆射手
}
public class PlantManager : MonoBehaviour
{
    public static PlantManager instance;
    private void Awake()
    {
        instance = this;
    }
    public GameObject GetPlantType(PlantType type)
    {
        switch(type)
        {
            case PlantType.FLOWER:
                return GameManager.instance.Gameconf.flowerprefab;
            case PlantType.SHOTTER:
                return GameManager.instance.Gameconf.shotterprefab;
        }
        return null;
    }
}
